home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Scripts / Find osax ƒ / READ_ME.txt < prev   
Encoding:
Text File  |  1994-09-24  |  1.1 KB  |  34 lines  |  [TEXT/ttxt]

  1. Find File v1.0
  2. by Michael J. Pawlowky
  3. September 24, 1994
  4.  
  5. Given a partial name find file will return the complete path to all matching files and/or folders.
  6.  
  7. The parameter is a list of either 2,3 or 5 fields.
  8.  
  9. usage: Find File {vRefNum, "SearchString", [FileAttributes], [LoDateSecs, HiDateSecs]}
  10.  
  11. - vRefNum can be found using the VolInfo osax
  12.  
  13. - Search String is a partial or full name for the file or folder that you are searhing for.
  14.  
  15. - FileAttributes is an integer between 0 and 2.
  16.                             0 = files and folders
  17.                             1 = files only
  18.                             2 = folders only
  19.                             (any other value will default to 0)
  20.  
  21. - Hi and Lo DateSecs are dates given in the format of 
  22.         number of secs since January 1st, 1904.
  23.         You can use the GetDateSecs to get the current date and then 
  24.         currentDate - days *24*60*60 to figure out the LoDateSecs
  25.  
  26. Square brackets [] in usage mean optional. However if you want to use the searh for
  27. files/folders with creation date (Hi/LoDateSecs) you must include the FileAttributes field.
  28.  
  29. Any comments can be sent to me via:
  30.  
  31. caronch@ere.umontreal.ca
  32.  
  33. P.S. Please feel free to distribute this addition at will.
  34.